﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Client.TopLevel;

namespace Client_TestApp
{
    class Program
    {
        static void Main(string[] args)
        {
            IUserEmployee    ue = new UserEmployee("login", "password");
            IManagerEmployee me = new UserManager("login", "password");

            //IEnumerable<TLEmployee> a1 = me.GetAllEmployees();                                                              // +
            //foreach (TLEmployee e in a1)
            //{
            //}

            //bool a2                    = me.AddEmployee(new TLEmployee(1, "ea", "ea", "ea", 0, 0, 0));                      // +
            //if (a2)
            //{
            //}

            //TLEmployee a4              = me.GetEmployee();                                                                  // +
            //if (a4 == null)
            //{
            //}

            //bool a6 = me.DeleteEmployee(new TLEmployee(1, "ea", "ea", "ea", 0, 0, 0));
            //if (a6)
            //{
            //}


            //bool a5                    = me.EditEmployee(a4, new TLEmployee(a4.Id, "lol", "login", "password", 1, 0, 0));   // 
            //if (a5)
            //{
            //}

            //bool a7 = me.AddTask(new TLTask(1, "1", DateTime.Now, Convert.ToDateTime("2011-06-02 13:05:13"), Convert.ToDateTime("2011-06-02 13:05:13"), 100, 10, a4.Id));
            //if (a7)
            //{
            //}
            //bool a7 = me.AddTask(new TLTask(1, "sfsdfsdf", DateTime.Now, Convert.ToDateTime("2011-06-02 13:05:13"), Convert.ToDateTime("2011-06-02 13:05:13"), 100, 10, me.GetEmployee().Id));
            ////IEnumerable<TLTask>     a3 = me.GetAllTasks();
            ////foreach (TLTask t in a3)
            ////{
            ////}

            //bool a8 = me.FinishTask(new TLTask(1, "sfsdfsdf", DateTime.Now, Convert.ToDateTime("2011-06-02 13:05:13"), Convert.ToDateTime("2011-06-02 13:05:13"), 100, 10, me.GetEmployee().Id));
            //if (a7 && a8)
            //{
            //}

            //int sal = me.GetSalary(DateTime.Now.AddDays(-3.0), DateTime.Now.AddDays(1.0));

            //IEnumerable<TLReport> rep = me.GetAllReports(DateTime.Now.AddDays(-3.0), DateTime.Now.AddDays(1.0));

            //if (rep == null)
            //{
            //}

            //if (sal == -1)
            //{
            //}
            //{
            //}

            //IEnumerable<TLPosition> r = me.GetAllPositions();
            //foreach (TLPosition po in r)
            //{
            //}

            //TLPosition p = me.GetPosition();
            //if (p == null)
            //{
            //}

        }
    }
}
